#include <iostream>
using namespace std;

int lcm(const int& a,const int& b)
{
    int t=1;
    while(t*a%b!=0)
    {
        t++;
    }
    return t*a; 
}



int main()
{
    int a,b;cin>>a>>b;
    cout<< lcm(a,b)<<endl;   
    return 0;
}